// samsting : this file is auto create.

#include "Ess/2014-08-28/DescribeScalingRulesResponse.h"

namespace aliyun { namespace Ess {

DescribeScalingRulesResponse::DescribeScalingRulesResponse() {
}

const string& DescribeScalingRulesResponse::ScalingRule::GetScalingRuleId(void) const {
  return ScalingRuleId_;
}

const string& DescribeScalingRulesResponse::ScalingRule::GetScalingGroupId(void) const {
  return ScalingGroupId_;
}

const string& DescribeScalingRulesResponse::ScalingRule::GetScalingRuleName(void) const {
  return ScalingRuleName_;
}

int DescribeScalingRulesResponse::ScalingRule::GetCooldown(void) const {
  return Cooldown_;
}

const string& DescribeScalingRulesResponse::ScalingRule::GetAdjustmentType(void) const {
  return AdjustmentType_;
}

int DescribeScalingRulesResponse::ScalingRule::GetAdjustmentValue(void) const {
  return AdjustmentValue_;
}

int DescribeScalingRulesResponse::ScalingRule::GetMinSize(void) const {
  return MinSize_;
}

int DescribeScalingRulesResponse::ScalingRule::GetMaxSize(void) const {
  return MaxSize_;
}

const string& DescribeScalingRulesResponse::ScalingRule::GetScalingRuleAri(void) const {
  return ScalingRuleAri_;
}

const std::vector<DescribeScalingRulesResponse::ScalingRule>& DescribeScalingRulesResponse::GetScalingRules(void) const {
  return ScalingRules_;
}

int DescribeScalingRulesResponse::GetTotalCount(void) const {
  return TotalCount_;
}

int DescribeScalingRulesResponse::GetPageNumber(void) const {
  return PageNumber_;
}

int DescribeScalingRulesResponse::GetPageSize(void) const {
  return PageSize_;
}

const char* DescribeScalingRulesResponse::BaseKey(void) {
  return "DescribeScalingRulesResponse";
}

void DescribeScalingRulesResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int ScalingRules__length = 0;
  UnmarshallerInt(ScalingRules__length, response_map, "DescribeScalingRulesResponse.ScalingRules.Length");
  if(ScalingRules__length >= 0) {
    ScalingRules_.resize(ScalingRules__length);
    for(int i1 = 0; i1 < ScalingRules__length; i1++) {
      UnmarshallerString(ScalingRules_[i1].ScalingRuleId_, response_map, "DescribeScalingRulesResponse.ScalingRules["+string_ValueOfInt(i1)+"].ScalingRuleId");
      UnmarshallerString(ScalingRules_[i1].ScalingGroupId_, response_map, "DescribeScalingRulesResponse.ScalingRules["+string_ValueOfInt(i1)+"].ScalingGroupId");
      UnmarshallerString(ScalingRules_[i1].ScalingRuleName_, response_map, "DescribeScalingRulesResponse.ScalingRules["+string_ValueOfInt(i1)+"].ScalingRuleName");
      UnmarshallerInt(ScalingRules_[i1].Cooldown_, response_map, "DescribeScalingRulesResponse.ScalingRules["+string_ValueOfInt(i1)+"].Cooldown");
      UnmarshallerString(ScalingRules_[i1].AdjustmentType_, response_map, "DescribeScalingRulesResponse.ScalingRules["+string_ValueOfInt(i1)+"].AdjustmentType");
      UnmarshallerInt(ScalingRules_[i1].AdjustmentValue_, response_map, "DescribeScalingRulesResponse.ScalingRules["+string_ValueOfInt(i1)+"].AdjustmentValue");
      UnmarshallerInt(ScalingRules_[i1].MinSize_, response_map, "DescribeScalingRulesResponse.ScalingRules["+string_ValueOfInt(i1)+"].MinSize");
      UnmarshallerInt(ScalingRules_[i1].MaxSize_, response_map, "DescribeScalingRulesResponse.ScalingRules["+string_ValueOfInt(i1)+"].MaxSize");
      UnmarshallerString(ScalingRules_[i1].ScalingRuleAri_, response_map, "DescribeScalingRulesResponse.ScalingRules["+string_ValueOfInt(i1)+"].ScalingRuleAri");
    } // for(int i1 = 0; i1 < ScalingRules__length; i1++) {
  } // if(ScalingRules__length >= 0) {

  UnmarshallerInt(TotalCount_, response_map, "DescribeScalingRulesResponse.TotalCount");
  UnmarshallerInt(PageNumber_, response_map, "DescribeScalingRulesResponse.PageNumber");
  UnmarshallerInt(PageSize_, response_map, "DescribeScalingRulesResponse.PageSize");
}


} } // namespace aliyun { namespace Ess {

// end of file 
